package io.narayana.nta.logparsing.as8.filters;

import io.narayana.nta.logparsing.common.Filter;

/**
 * @author machinly
 * @date 16/4/12
 * @mail machinly@outlook.com
 */
public class SuspendFilter implements Filter {

    public static final String SUSPEND = "TransactionImpleManager.suspend";


    @Override
    public boolean matches(String line) {

        try {
            return line.contains(SUSPEND);
        } catch (IndexOutOfBoundsException e) {
            return false;
        }
    }
}
